package www.wen.com.common.lib.data.entities


import androidx.annotation.Keep

@Keep
data class JoinServerEntity(
    val createTime: String, // 2021-09-27T14:35:23.000+0800
    val id: Int, // 37
    val inviteUserId: String, // t62483763
    val server: Server,
    val serverId: String, // T82566502
    val shareCode: String, // QUHely
    val shareUrl: String, // http://wekan.cn:7023/share/QUHely
    val inviteUser: InviteUser // http://wekan.cn:7023/share/QUHely
) {

    @Keep
    data class InviteUser(
            val id: String, // 2021-09-22T17:45:09.000+0800
            val nickName: String,
            val gender: Int, // n
            val avatar: String, // t66753048
            val onlineStatus: Boolean, // y
    )

    @Keep
    data class Server(
        val createTime: String, // 2021-09-22T17:45:09.000+0800
        val forbidReason: String,
        val officialFlag: String, // n
        val ownUserId: String, // t66753048
        val recommendFlag: String, // y
        val serverBackground: String, // t65562628/202109/20210926225536_477856.jpeg
        val serverId: String, // T82566502
        val serverIntro: String, // 哈哈哈哈哈哈嗝哈哈哈哈哈哈哈哈哈哈或或哈哈哈哈哈哈哈哈哈哈或或或或或或哈哈哈哈哈哈哈哈哈哈或或或
        val serverLogo: String, // t66753048/202109/20210922174508_433103.jpeg
        val serverMember: ServerMember?,
        val serverName: String, // Kitty
        val serverStatus: Int, // 0
        val unForbidTime: String // 2021-09-24T16:52:07.000+0800
    ) {
        @Keep
        data class ServerMember(
            val allowFriendFlag: String, // 1
            val createTime: String, // 2021-09-27T10:56:05.000+0800
            val id: Int, // 89
            val nickName: String, // 电报用户t62483763
            val noticeType: String, // 1
            val ownerFlag: String, // 0
            val serverId: String, // T82566502
            val updateTime: String, // 2021-09-27T10:56:05.000+0800
            val userId: String // t62483763
        )
    }
}